package com.invoicerecognition.backend.controller.teacher;

import com.invoicerecognition.backend.service.teacher.UpdateTeacherInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UpdateTeacherInfoController {

    @Autowired
    private UpdateTeacherInfoService updateTeacherInfoService;

    @PostMapping("/api/teacher/update-info")
    public Map<String, String> updateTeacherInfo(@RequestParam Map<String, String> data) {
        return updateTeacherInfoService.updateTeacherInfo(data);
    }
}
